package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IBindPhoneActivityModel;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.req.ThridPlatFromRequest;
import com.wgts.wgts.netmodle.req.WXLoginRequest;
import com.wgts.wgts.netmodle.resp.CurrentEntity;
import com.wgts.wgts.netmodle.resp.LoginEntity;
import com.wgts.wgts.netmodle.resp.ThridPreBindEntity;
import com.wgts.wgts.tools.SharedpreferencesHelper;

public class BindPhoneActivityModel implements IBindPhoneActivityModel {

   private NetService netService;

   private SharedpreferencesHelper sharedpreferencesHelper;

    public BindPhoneActivityModel(NetService netService, SharedpreferencesHelper sharedpreferencesHelper) {
        this.netService = netService;
        this.sharedpreferencesHelper = sharedpreferencesHelper;
    }

    @Override
    public void bindUser(ThridPlatFromRequest request, HttpResultSubscriber<LoginEntity> subscriber) {
        netService.bindUser(request, subscriber);
    }

    @Override
    public void thridPreBind(String thirdparty, String uid, String unionid, String phone, String smsCode, HttpResultSubscriber<ThridPreBindEntity> subscriber){
        netService.thridPreBind(thirdparty, uid, unionid, phone, smsCode, subscriber);
    }

    @Override
    public void register(String username, String password, String smsCode, String inviteCode, HttpResultSubscriber<LoginEntity> subscriber) {
        netService.register(username, password, smsCode, inviteCode, subscriber);
    }
}
